import i18n from '@src/locales';
import FormCustomerAddressSetting from './FormCustomerAddressSetting.vue';
import FormCustomerAddressPreview from './FormCustomerAddressPreview.vue';
import FormCustomerAddress from './FormCustomerAddress.vue';
import FormCustomerAddressSearch from './extend/FormCustomerAddressSearch.vue';

let FormCustomerAddressField = {
  fieldName: 'address',
  formType: 'customerAddress',
  name: i18n.t('common.form.type.customerAddress'),
  isSystem: 1,
  isSystemControl: true,
  forceDelete: true,
  previewIcon: 'icon-fd-address',
  component: {
    setting: FormCustomerAddressSetting,
    preview: FormCustomerAddressPreview,
    build: FormCustomerAddress,
    extend: {
      customerAddress_search: FormCustomerAddressSearch,
      'contract_customerAddress_setting': FormCustomerAddressSetting,
      'projectType_customerAddress_setting': FormCustomerAddressSetting
    }
  }
};

export default FormCustomerAddressField;
